-- GENERATED SPELL FOR [Suffering Highborne] --


function spell0_7523(pUnit, Event) --@Curse of Agony,n/a--
pUnit:FullCastSpellOnTarget(14868,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_7523', 30000, 1)
end

function Sorts_7523(pUnit, Event)
local choix_sorts_7523 = math.random(0, 0)
if choix_sorts_7523 == 0 then
pUnit:RegisterEvent('spell0_7523', 1, 1)
end
end

function mob7523_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_7523', math.random(1500, 3000), 1)
end

function mob7523_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7523_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob7523_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(7523, 1, 'mob7523_Action')
RegisterUnitEvent(7523, 2, 'mob7523_Leave')
RegisterUnitEvent(7523, 3, 'mob7523_Kill')
RegisterUnitEvent(7523, 4, 'mob7523_Die')
